projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77483ac
)
Synchronize NS fringe bitmap code with X
author
Po Lu
<luangruo@yahoo.com>
Fri, 4 Mar 2022 01:06:20 +0000
(09:06 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Fri, 4 Mar 2022 01:06:20 +0000
(09:06 +0800)
* nsterm.m (ns_draw_fringe_bitmap): Redefine bitmap if it does
not already exist.
src/nsterm.m
patch
|
blob
|
history
diff --git
a/src/nsterm.m
b/src/nsterm.m
index aba26ef7585f4d125e0e8205df1b19c7dd2a9b7a..639f8781e44b96ed2dc8cf81735ce52ef167d137 100644
(file)
--- a/
src/nsterm.m
+++ b/
src/nsterm.m
@@
-2916,6
+2916,13
@@
ns_draw_fringe_bitmap (struct window *w, struct glyph_row *row,
}
NSBezierPath *bmp = [fringe_bmp objectForKey:[NSNumber numberWithInt:p->which]];
+
+ if (bmp == nil)
+ {
+ gui_define_fringe_bitmap (f, p->which);
+ bmp = [fringe_bmp objectForKey: [NSNumber numberWithInt: p->which]];
+ }
+
if (bmp)
{
NSAffineTransform *transform = [NSAffineTransform transform];